package cn.jiangjiesheng.bootstrap.fileport;

import cn.jiangjiesheng.bootstrap.fileport.infrastructure.properties.FilePortProperties;
import cn.jiangjiesheng.bootstrap.fileport.interfaces.DocExporter;
import cn.jiangjiesheng.bootstrap.fileport.interfaces.ExcelTableExporter;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * Created by dev@jiangjiesheng.cn on 2021/9/3  <br/>
 *
 * @author dev@jiangjiesheng.cn
 */
@Configuration
@EnableConfigurationProperties(FilePortProperties.class)
public class FilePortAutoConfiguration {

    @Bean
    public DocExporter docExporter(){
        return new DocExporter();
    }

    @Bean
    public ExcelTableExporter excelTableExporter(){
        return new ExcelTableExporter();
    }

}
